package com.lyz.user.designPattern.filterPattern;

public abstract class BaseArticleFilter implements IArticleFilter {

    public abstract boolean doFilter(ArticleContext articleContext);

    private void filter(ArticleContext articleContext) {
        // 过滤
        doFilter(articleContext);
        // 各种操作
        // 发送通知
        sendMsg();
    }

    private void sendMsg() {
        // 发送通知
    }

}
